Else If Mouse Key=0 and Key State(89)=True : Goto _SAVE
End If
Loop
LEFT:
X1=X Screen(X Mouse)
Y1=Y Screen(Y Mouse)
Plot X1,Y1,9
Do
X=X Screen(X Mouse) : Y=Y Screen(Y Mouse)
Paper 3 : Pen 0 : Screen 0 : Locate 71,1
Print "X=";X;" " : Locate 71,2 : Print "Y=";Y;" "
If Mouse Key=2 Then Goto RIGHT
Loop
RIGHT:
X2=X Screen(X Mouse)
Y2=Y Screen(Y Mouse)
Plot X2,Y2,9 : Wait 15
If X1>X2 or Y1>Y2 : Ink 8,0 : Text 10,10,"I can't draw it that way ... please try again !" : Wait 100 : Cls 0,0,0 To 400,12 : Plot X1,Y1,0 : Plot X2,Y2,0
Else If X2-X1<7 or Y2-Y1<7 : Ink 8,0 : Text 10,10,"It's too small to draw ... have another go !" : Wait 100 : Cls 0,0,0 To 400,12 : Plot X1,Y1,0 : Plot X2,Y2,0
Else If X1<X2 or Y1<Y2 : _DRAW
End If
_SAVE:
Dir$="DF0:"
If Key State(89)=True
F$=Fsel$("*.iff","","Choose an IFF file to Save to")